package org.example.demos.jvm;

public class Sub extends Base{
    public static void main(String[] args) {
        Sub s = new Sub();
        Base b = new Base();
        System.out.println( s.getClass() == b.getClass());
        System.out.println( Sub.class.equals(Base.class));
//        System.out.println( Sub.class==Base.class); compiler error


    }
}
